package com.joinway.framework.data.jdbc.bean;

import com.joinway.framework.bean.BaseBean;

public class WhereClause extends BaseBean {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private String where;
	private Object[] params;
	
	public void addAndCondition(String c){
		if(where != null && where.trim().length() > 0){
			where += " and " + c + " ";
		}else{
			where = " where " + c + " ";
		}
	}

	public String getWhere() {
		return where;
	}

	public void setWhere(String where) {
		this.where = where;
	}

	public Object[] getParams() {
		return params;
	}

	public void setParams(Object[] params) {
		this.params = params;
	}
}
